package com.shd.edanpei.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import cn.jpush.android.service.PushService;


public class BootBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent intentService= new Intent(context, PushService.class);
        context.startService(intentService);

        Intent intentPackage=context.getPackageManager().getLaunchIntentForPackage("com.shd.edanpei");
        context.startActivity(intentPackage);
    }
}
